//2:计算当前时间距“世界末日”已经过去了多少天（2012-12-21）
package Work0529;

import java.util.Calendar;

public class Doomsday {

	public static void main(String[] args) {
		Calendar old = Calendar.getInstance();
		Calendar today = Calendar.getInstance();
		System.out.println(today.getTime());
		old.set(2012, Calendar.DECEMBER, 21);
		System.out.println(old.getTime());
		long a = (today.getTimeInMillis() - old.getTimeInMillis()) / 1000 / 3600 / 24;
		System.out.println("距\"世界末日\"已经过去了" + a + "天");

	

	}

}
